#ifndef _AR_OPENCV_H__
#define _AR_OPENCV_H__

#include <vector>
#include <opencv2/opencv.hpp>

#include <android/log.h>

#define LOG_TAG "ar_opencv"
#define LOGE(...)  __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
#define LOGD(...)  __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)

using namespace std;
using namespace cv;

extern int memcpy_kp(char* buf, const vector<KeyPoint>& kp);
extern int memcpy_mat(char* buf, const Mat& m);

extern void arInit(const Mat& frame);
extern bool arTracking(const Mat& frame, int width, int height, int (&bounds)[8]);

#endif